#ifndef DATABASEOPERATOR_H
#define DATABASEOPERATOR_H
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <QString>
class DatabaseOperator
{
public:
    DatabaseOperator(QSqlDatabase* connection);
    ~DatabaseOperator();
    QString GetMetaData(QString& key);
    void SetMetaData(QString& key,QString& value);
private:
    QSqlDatabase* connection;
    bool contains(QString& tableName,QString& columnName,QString& value);
};

#endif // DATABASEOPERATOR_H
